package com.pipi.sso.dao.mapper;

import com.pipi.sso.dao.model.RoleDO;
import com.pipi.sso.dao.query.RoleQuery;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
/**
 * MyBatis Mapper for Role.
 */
 @Mapper
 @Repository
public interface RoleMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(RoleQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(RoleQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(RoleDO record);

    /**
     * insert selective.
     */
    int insertSelective(RoleDO record);

    /**
     * select by query condition.
     */
    List<RoleDO> selectByQuery(RoleQuery query);

    /**
     * select by primary key.
     */
    RoleDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") RoleDO record, @Param("query") RoleQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") RoleDO record, @Param("query") RoleQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(RoleDO record);
}